#include "mainwindow.h"

#include <QApplication>
#include <QFile>
#include <QDebug>

static QString setstyle(QString stylename)
{
    QFile file(stylename);
    file.open(QFile::ReadOnly);
    QString css=file.readAll();
    //qDebug()<<css;
    return css;

}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QString st = setstyle(":/darkblue.css");
    a.setStyleSheet(st);
    MainWindow w;
    w.show();
    return a.exec();
}
